package com.allwees.bs.module.lms.track;

import com.google.gson.JsonObject;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;

public interface TrackingAfterShipApi {

    /**
     * 订阅单个订单
     * @param trackingObj
     * @return
     */
    @POST("trackings")
    Call<JsonObject> trackOne(@Body TrackingAfterShipObj trackingObj);

    /**
     * 查询单个订单
     * @param carrierCode
     * @param trackingNum
     * @return
     */
    @GET("trackings/{cc}/{tn}")
    Call<JsonObject> getInfo(@Path("cc") String carrierCode, @Path("tn") String trackingNum);
}
